/*
 * @Descripttion:
 * @version:
 * @Author: sueRimn
 * @Date: 2020-11-19 15:40:44
 * @LastEditors: sueRimn
 * @LastEditTime: 2020-11-20 09:50:34
 */
import request from "@/utils/request";
import store from "@/store/index";

// 夹带k_token
function addK_Token(data) {
    var token = {
        k_token: store.getters.k_token
    };
    Object.assign(data, token);
    return data;
}

/**
 * 获取版本列表
 */
export function getTextbookList(data) {
    return request({
        url: "/location_url/user/currency.basic/TextbookList",
        method: "POST",
        headers: {},
        data: addK_Token(data)
    });
}

/**
 * 获取地区学校
 */
export function getExpectSchool(data) {
    return request({
        url: "/location_url/user/evaluating.expect/expectSchool",
        method: "POST",
        headers: {},
        data: addK_Token(data)
    });
}

/**
 * 新增学校
 */
export function addNewSchool(data) {
    return request({
        url: "/location_url/user/evaluating.Expect/addexpectSchool",
        method: "POST",
        headers: {},
        data: addK_Token(data)
    });
}

/**
 * 获取签名
 */
export function getSign(data) {
    return request({
        url: "/location_url/user/App/getsign",
        method: "POST",
        headers: {},
        data: addK_Token(data)
    });
}

/**
 * 确认选择学校
 */
export function saveSelectSchool(data) {
    return request({
        url: "/location_url/user/currency.basic/UpdateBasic",
        method: "POST",
        headers: {},
        data: addK_Token(data)
    });
}
